package com.xunsiya.common.config.util;

import java.util.Hashtable;
import java.util.Map;

/**
 * 缓存工具类
 * @author panjun
 * @version 1.0
 * <p>
 * <p>修订人		修订时间			描述信息
 * <p>-----------------------------------------------------
 * <p>panjun	2018-08-23		初始创建
 */
public class CacheUtil {
    /**
     * 缓存
     */
    private static Map<String,Object> cacheMap = new Hashtable<>();

    public static void putToCache(String key, Object o) {
        cacheMap.put(key, o);
    }

    public static Object getCache(String key) {
        return cacheMap.get(key);
    }

    public static void removeCache(String key) {
        cacheMap.remove(key);
    }

}
